package com.letoken.platform.repo.admin.res.config;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.letoken.platform.pub.req.QueryReqBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author wyl
 * @date 2022/12/10
 */
@Data
@ApiModel(value = "查询系统公告配置返回对象", description = "查询系统公告配置返回对象")
public class QueryAnnouncementRes {

    @ApiModelProperty(name = "id", value = "编号")
    private Long id;

    @ApiModelProperty(name = "title", value = "标题")
    private String title;

    @ApiModelProperty(name = "lang", value = "语言文字")
    private String lang;

    @ApiModelProperty(name = "pid", value = "父标题id")
    private Long pid;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "publishTime", value = "开始时间")
    private LocalDateTime publishTime;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(name = "expireTime", value = "结束时间")
    private LocalDateTime expireTime;

    @ApiModelProperty(name = "isShow", value = "是否展示")
    private Boolean isShow;

}
